
function funkone() {
    console.log('funkone');
    var user = document.getElementById('user');
    var password = document.getElementById('password');
    var login = document.getElementById('login');
    var loginerror = document.getElementById('loginerror');
    var uservalue = user.value;
    var reg = /^[0-9a-zA-Z]{6,10}$/;
    if (reg.test(uservalue)){
        loginerror.className = 'ok';
    }else {
        loginerror.className = 'error';
    }

}
